package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmCompany;
import com.aijk.ehm.model.dto.EhmCompanyDto;
import com.aijk.ehm.model.qo.EhmCompanyQo;
import com.aijk.ehm.model.vo.EhmCompanyVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmCompanyApi {
    Long save(EhmCompanyDto bean) throws ErrorCodeException;

    void update(EhmCompanyDto bean) throws ErrorCodeException;

    EhmCompanyVo findOne(Long id) throws ErrorCodeException;

    List<EhmCompanyVo> list(EhmCompanyQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmCompanyQo qo);

    PageInfo<EhmCompanyVo> page(EhmCompanyQo qo);
}